package function;

import book.Book;
import book.BookList;

public class ShowBooks implements IFunction{
    public void act(BookList bookList){
        System.out.println("显示书籍:");
        int currentSize = bookList.getBookNum();
        for (int i = 0; i < currentSize; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}
